﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class2
    {
        private int id;
        private string name;
        private string bu;
        public int Id { get {return this.id; } set {this.id=value; } }
        public string Name { get {return this.name; } set {this.name=value; } }
        public string Bu { get {return this.bu; } set {this.bu=value; } }

        public void wu()
        {
            Console.WriteLine("我的工号是{0},我的姓名是{1},我的部门是{2}", this.Id, this.Name, this.Bu);
        }
        public void yu(int id, string name, string bu)
        {
            Console.WriteLine("我的工号是{0},我的姓名是{1},我的部门是{2}", Id, Name, Bu);
        
        }
    }
}
